home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG Revelations
/
BMUG Revelations.toast
/
Programming
/
Programming Utilities
/
ViewIt Shareware
/
ViewIt™ 2.04 Shareware
/
Projects
/
Pascal Demos
/
FaceStorLP.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-07-30
|
6KB
|
306 lines
{FaceWare 2.03 Constants & Shared Record}
{©FaceWare 1989-92. All Rights Reserved.}
unit FaceStorLP;
interface
const
{FaceIt commands}
DoLoop = 0;
DoEvnt = -51;
DoMenu = -52;
DoUpdt2 = -53;
DoAuto2 = -54;
GetMsg = -55;
GetFWs = 157;
{DialIt commands}
NewDlg = 1131;
OpnDlg = 1132;
EndDlg = 1133;
SetDlg = 1134;
GetDlg = 1135;
ShoDlg = 1136;
ChkDlg = 1137;
ExtDlg = 1138;
DrwDlg = 1139;
WinTxt = 1147;
WinFnt = 1148;
WinCol = 1149;
{UtilIt commands}
DoInit = -61;
DoPrep = -62;
DoUnld = -63;
ChgCur = 121;
PstEvt = 122;
PopMen = 123;
PstNot = 124;
SetIdl = 131;
EndIdl = 132;
ShoAlt = 153;
StpAlt = 154;
NotAlt = 155;
CtnAlt = 156;
SetItm1 = 160;
SetItm2 = 161;
GetItm = 162;
FixFSC = 163;
SelFSC = 164;
ChkMem = 171;
NewBlk = 172;
PrgCmd = 173;
GetFgC = 178;
GetBkC = 179;
SetFgC = 180;
SetBkC = 181;
SetFSS = 183;
SetPal2 = 185;
StdOpn = 201;
StdSav = 202;
GetRef = 205;
SetRef = 206;
SetTyp = 208;
SndBhd = 250;
GetNam = 251;
SetNam = 252;
MovRec = 254;
MovAlt = 255;
MovDlg = 256;
MovWin = 257;
DrgWnd = 259;
ShoStr = 261;
StpStr = 262;
NotStr = 263;
CtnStr = 264;
GetStd = 301;
SetStd = 302;
SavDlg = 356;
SavWin = 357;
GetI2 = 422;
GetI4 = 423;
GetR4 = 425;
GetR8 = 426;
GetR10 = 427;
GetR12 = 428;
SetI2 = 432;
SetI4 = 433;
SetR4 = 435;
SetR8 = 436;
SetR10 = 437;
SetR12 = 438;
SetSub = 451;
TrmStr = 452;
SetPrm = 453;
CnvStr = 454;
FndTxt = 455;
NumToS = 471;
SToNum = 481;
GetStr = 491;
SetStr = 492;
SrtLst = 493;
DupLst = 494;
{ViewIt Commands}
AddVew = -1200;
NewWnd = -1201;
EndWnd = -1202;
MdlWnd = -1203;
SizWnd = -1204;
MovWnd = -1205;
ShoWnd = -1206;
HidWnd = -1207;
GetWVC = -1208;
GetWnd = -1209;
LnkCtl = -1210;
GetCtl = -1211;
ShoCtl = -1212;
GetVal = -1213;
SetVal = -1214;
OvrCtl = -1215;
AddCtl = -1216;
DrwCtl = -1217;
ScrCtl = -1218;
ActCtl = -1219;
SelCtl = -1220;
DspCtl = -1221;
StlCtl = -1222;
SavCtl = -1223;
SavWnd = -1224;
HlpWnd = -1229;
type
{Global FaceWare record}
FacePtr = ^FaceRec;
FaceRec = record
fHead: array[1..8] of integer;
fOffPort: GrafPtr;
fCOffPort: GrafPtr;
fActiveWnd: WindowPtr;
fActiveRec: longint;
fActiveID: integer;
fActiveResID: integer;
fMsgCount: integer;
fFlags: longint;
fStuff: Ptr;
fHeapBuff: longint;
fEnvFlags: longint;
fSleep: longint;
fScreenRect: Rect;
fDragRect: Rect;
fFrontSleep: longint;
fBackSleep: longint;
fFiller1: integer;
fStdBlock: Handle;
fStdCount: integer;
fSysEnvArr: array[1..8] of integer;
fApplVRef: integer;
fCreator: OSType;
fRefCon: longint;
fFiller2: array[1..7] of integer;
fCursor: integer;
fFontMenu: MenuHandle;
fSizeMenu: MenuHandle;
fStyleMenu: MenuHandle;
fColorMenu: MenuHandle;
fFiller3: signedbyte;
fI1Err: signedbyte;
fI2Err: integer;
fI4Err: longint;
fI8Err: computational;
fR4Err: real;
fR8Err: double;
fR10Err: array[1..5] of integer;
fR12Err: array[1..6] of integer;
fFiller4: array[1..125] of integer;
fWDEF: longint;
fGlueData: longint;
fWaitNextEvent: longint;
fNewWindow: longint;
fNewCWindow: longint;
fGetNewWindow: longint;
fGetNewCWindow: longint;
fGetNewDialog: longint;
fDisposeWindow: longint;
fDisposDialog: longint;
fActiveWindow: longint;
fSelectWindow: longint;
fUpdateOther: longint;
fFiller5: array[1..9] of ProcPtr;
fEvent: EventRecord;
{DialIt subrecord}
dHead: array[1..8] of integer;
dlogptr: DialogPtr;
dataptr: Ptr;
dFlags: longint;
dBaseID: integer;
dPopID: integer;
listID: array[1..20] of integer;
slope: array[1..20] of real;
intercept: array[1..20] of real;
dialog: array[1..99] of integer;
dHit: integer;
dClick: integer;
dEvent: EventRecord;
{UtilIt subrecord}
uHead: array[1..8] of integer;
uI2: integer;
uI4: longint;
uR4: real;
uR8: double;
uR10: array[1..5] of integer;
uR12: array[1..6] of integer;
uPt: Point;
uRect: Rect;
uCommand: longint;
uParam: array[1..4] of longint;
uResult: longint;
uMenuID: longint;
uMenuItem: longint;
uString: Str255;
uName: Str255;
uRGB: RGBColor;
uStyle: style;
uI1: signedbyte;
uI8: computational;
uMenuHdl: MenuHandle;
{ViewIt subrecord}
vHead: array[1..8] of integer;
vErr: integer;
vCDEF: ProcPtr;
vSelectCtl: ControlHandle;
vSelectRec: longint;
vSelectID: integer;
{info returned by enabled items}
wiHit: integer;
wvHit: integer;
wcHit: integer;
wClick: integer;
wEvent: EventRecord;
{window info returned by GetWnd}
wWindow: WindowPtr;
wResID: integer;
wCount: integer;
wvCount: integer;
wiCount: integer;
{control info returned by GetCtl}
cControl: ControlHandle;
ciIndex: integer;
cvIndex: integer;
ccIndex: integer;
cBaseID: integer;
{info copied from "cControl" block...}
cNext: ControlHandle;
cOwner: WindowPtr;
cRect: Rect;
cVis: signedByte;
cHilite: signedByte;
cValue: integer;
cMin: integer;
cMax: integer;
cInfo: Handle;
cLoData: Handle;
cAction: ProcPtr;
cRefCon: longint;
cTitle: Str255;
{info copied from "cInfo" block...}
cStuff: array[1..6] of integer;
cTmplRefCon: longint;
cPtr: Ptr;
cHiData: Handle;
cView: ControlHandle;
cOldRect: Rect;
cClip: Rect;
cContent: Rect;
cLimit: Rect;
cType: longint;
cVarCode: integer;
cResType: ResType;
cResID: integer;
cResHdl: Handle;
cPrivate: longint;
cFiller: signedByte;
cCmdKey: signedByte;
cPnRound: integer;
cPnSize: Point;
cTxJust: signedByte;
cTxFace: Style;
cTxSize: integer;
cTxFont: integer;
cDataType: integer;
cDataDigits: signedByte;
cDataFormat: signedByte;
cDataOffset: integer;
cDataPtr: Ptr;
cStorType: integer;
cStorPtr: longint;
cColors: CCTabHandle;
cOverride: ProcPtr;
cCount: integer;
cString: Str255;
{Local FCMD record & proc address table}
xEntries: integer;
xTable: array[1..40] of longint;
end;
implementation
end.